import React from 'react';
import { Route, IndexRoute, Redirect } from 'react-router';

import MainLayout from '../redux/containers/MainLayout';
import Dashboard from '../redux/components/dump/Dashboard';

// 老版本
import InnerWindow from '../redux/containers/InnerWindow';

// 布置作业 - 新增趋势
import FixupWorkNewTrend from '../redux/containers/fixup-work/NewTrend';
// 布置作业 - 累积趋势
import FixupWorkCumulativeTrend from '../redux/containers/fixup-work/CumulativeTrend';
// 布置作业 - 科目分布
import FixupWorkSubjectDistribution from '../redux/containers/fixup-work/SubjectDistribution';
// 布置作业 - 地域分布
import FixupWorkAreaDistribution from '../redux/containers/fixup-work/AreaDistribution';
// 布置作业 - 提交率
import FixupWorkSubmissionRate from '../redux/containers/fixup-work/SubmissionRate';
// 布置作业 - 题型分布
import FixupWorkQuestionsDistribution from '../redux/containers/fixup-work/QuestionsDistribution';
// 提交作业 - 新增趋势
import SubmitWorkNewTrend from '../redux/containers/submit-work/NewTrend';
// 提交作业 - 累积趋势
import SubmitWorkCumulativeTrend from '../redux/containers/submit-work/CumulativeTrend';
// 提交作业 - 科目分布
import SubmitWorkSubjectDistribution from '../redux/containers/submit-work/SubjectDistribution';
// 提交作业 - 地域分布
import SubmitWorkAreaDistribution from '../redux/containers/submit-work/AreaDistribution';
// 分类用题分析
import ExaminationAnalysisExamFlow from '../redux/containers/examination-analysis/ExamFlow';
// 作业推荐
import ExaminationAnalysisRecommendation from '../redux/containers/examination-analysis/Recommendation';
// 用题来源分布
import ExaminationAnalysisSourceDistribution from '../redux/containers/examination-analysis/SourceDistribution'
// 邀请活动分析
import ActivityAnalysisInvite from '../redux/containers/activity-analysis/Invite';
// 自主练习
import IndependentPractice from '../redux/containers/independent-practice';
// 学生闯关留存数据
import StudentMissionRetained from '../redux/containers/retained/StudentMissionRetained';
// 闯关深度
import DepthMission from '../redux/containers/independent-practice/DepthMission'

// 路由配置
export default (
	<Route path='/app' component={MainLayout}>
		<IndexRoute component={Dashboard} />
		{/*老版本系统的内嵌页面*/}
		<Route path='html/knowbox/*/*.html' component={InnerWindow} />
		{/*布置作业-老师-题目*/}
		<Route path='FixupWorkNewTrend' component={FixupWorkNewTrend} />
		<Route path='FixupWorkCumulativeTrend' component={FixupWorkCumulativeTrend} />
		<Route path='FixupWorkSubjectDistribution' component={FixupWorkSubjectDistribution} />
		<Route path='FixupWorkAreaDistribution' component={FixupWorkAreaDistribution} />
		<Route path='FixupWorkSubmissionRate' component={FixupWorkSubmissionRate} />
		<Route path='FixupWorkQuestionsDistribution' component={FixupWorkQuestionsDistribution} />
		{/*提交作业-学生-题目*/}
		<Route path='SubmitWorkNewTrend' component={SubmitWorkNewTrend} />
		<Route path='SubmitWorkCumulativeTrend' component={SubmitWorkCumulativeTrend} />
		<Route path='SubmitWorkSubjectDistribution' component={SubmitWorkSubjectDistribution} />
		<Route path='SubmitWorkAreaDistribution' component={SubmitWorkAreaDistribution} />
		{/*题目数据分析*/}
		<Route path='ExaminationAnalysisExamFlow' component={ExaminationAnalysisExamFlow} />
		{/*作业推荐*/}
		<Route path='ExaminationAnalysisRecommendation' component={ExaminationAnalysisRecommendation} />
		{/*用题来源分布*/}
		<Route path='ExaminationAnalysisSourceDistribution' component={ExaminationAnalysisSourceDistribution} />
		{/*活动数据分析*/}
		<Route path='ActivityAnalysisInvite' component={ActivityAnalysisInvite} />
		{/*自主练习*/}
		<Route path='IndependentPractice' component={IndependentPractice} />
		{/*闯关深度*/}
		<Route path='DepthMission' component={DepthMission} />
		{/*学生闯关留存数据*/}
		<Route path='StudentMissionRetained' component={StudentMissionRetained} />
	</Route>
);